﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VoltcraftControlInterface
{
    public partial class SettingsForm : Form
    {
        public bool cancel;
        public SettingsForm()
        {
            InitializeComponent();
            cancel = true;
        }

        private void SettingsForm_Load(object sender, EventArgs e)
        {
        }

        private void applyBtn_Click(object sender, EventArgs e)
        {
            cancel = false;
            this.Close();
        }

        private void cancelBtn_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void SettingsForm_Paint(object sender, PaintEventArgs e)
        {
            using (LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle,
                                                               Color.White,
                                                               Color.LightGray,
                                                               90F))
            {
                e.Graphics.FillRectangle(brush, this.ClientRectangle);
            }
        }
    }
}
